package de.cbf.cam.dsa.tavern.carte.preferences;

import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.jface.preference.IPreferenceStore;

import de.cbf.cam.dsa.tavern.carte.Activator;

/**
 * Class used to initialize default preference values.
 */
public class PreferenceInitializer extends AbstractPreferenceInitializer {

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
	 */
	public void initializeDefaultPreferences() {
		IPreferenceStore store = Activator.getDefault().getPreferenceStore();
		String userHome = System.getProperty("user.home");
		String pathAppData = userHome+"\\EOP-Kit\\CarteGenerator\\";
		store.setDefault(PreferenceConstants.P_XML_INGREDIENT_FILE,	 pathAppData+"default.ing.xml");
		store.setDefault(PreferenceConstants.P_XML_PROCESSING_FILE,	 pathAppData+"default.prc.xml");	
		store.setDefault(PreferenceConstants.P_XML_MEALTYPE_FILE,	 pathAppData+"default.mlt.xml");
		store.setDefault(PreferenceConstants.P_XML_MEALS_FILE,		 pathAppData+"default.ml.xml");
	}

}
